import { request } from 'umi';

/**  实时热榜  POST */
export async function hotRank(options?: any) {
  return request<BaseResponseBean.response<TophubHotRankData.HotRank[]>>('/tophub/hot/rank', {
    method: 'POST',
    data: options || {},
  });
}

export async function selectHotRank(options?: any) {
  return request<BaseResponseBean.response<TophubHotRankData.HotRankSelect>>(
    '/tophub/hot/rank/select',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

export async function queryHotRank(options?: any) {
  return request<BaseResponseBean.response<TophubHotRankData.HotQuery[]>>(
    '/tophub/hot/rank/query',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
